package com.bit.blog.pojo.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

//进行对返回给前端相关的时间进行隐藏设置；
@Data
public class BlogInfoResponse {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    @JsonFormat(pattern = "yyyy-MM-dd")//日期的初始化；
    private LocalDateTime createTime;
//    public String getContent(){
//        return content==null?"":content.substring(0,50);
//    }


}
